home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
macdrivermuseum.net
/
www.macdrivermuseum.net.tar
/
www.macdrivermuseum.net
/
cards
/
orange386.hqx
/
Orange386 Folder
/
Orange386 Supplemental.image
/
MOUSE82.DOC
< prev
next >
Wrap
Text File
|
1992-06-10
|
21KB
|
524 lines
INTRODUCTION
XMOUSE is an independently developed DOS driver that lets you use your mouse
with DOS programs designed to be used with a mouse.
A mouse driver is a small program that provides a standard interface between a
pointing device and an application program that uses the pointing device for
input. Once the mouse driver program is run, it normally remains in the
computer's memory until the machine is shut off.
Microsoft created the first mouse driver program for DOS in 1983. Today, the
Microsoft mouse driver continues to define the standard pointing device
interface for DOS application programs. LCS/Telegraphics' XMOUSE driver
version 8.2 provides a functionally equivalent emulation of the industry
standard Microsoft mouse driver, MOUSE.COM and MOUSE.SYS version 8.2.
The driver software has two main areas of functionality:
1) Returning mouse coordinates and button status to the applications
programs;
2) Drawing and maintaining a tracking cursor that will follow the
motion of the mouse.
Normally the operation of the driver will be transparent. You only have to
ensure that the driver is installed before you run applications that use a
mouse.
INSTALLING THE XMOUSE DRIVER
Before you install the software, you should make sure the mouse is hooked up to
the computer. If you should encounter a problem, always double check the
hardware connection to see if it is correct.
XMOUSE comes in two different forms: the file XMOUSE.COM is a "resident
program" mouse driver, and the file XMOUSE.SYS is an "installable MS-DOS device
driver". XMOUSE.COM is by far the easier mouse driver to install. To install
XMOUSE.COM, just type at the DOS prompt:
XMOUSE
You need to install XMOUSE before running an application which uses the mouse.
If you have a hard disk drive you will probably want to copy XMOUSE.COM onto
your hard disk. Many people add the XMOUSE command to their AUTOEXEC.BAT file,
so the driver is installed automatically whenever they start using their
computer.
The second way to install XMOUSE is by including XMOUSE.SYS as a device driver
in your CONFIG.SYS file. Add the line below to your CONFIG.SYS file with a
text editor:
DEVICE=XMOUSE.SYS
If the XMOUSE.SYS file is not stored in the root directory of your hard disk
drive, the correct path name should be in front of XMOUSE.SYS. If you need to
change the mouse type, or if you want to remove XMOUSE, you have to make the
changes in your CONFIG.SYS file and then reboot the machine.
This method will have a result that is identical to running XMOUSE.COM each
time that you start up your computer, with the following exceptions: (1) you
can not remove XMOUSE.SYS from memory with the /off command line option; (2)
XMOUSE.SYS cannot read configuration commands from the MOUSE.INI configuration
file; (3) XMOUSE.SYS cannot make use of expanded memory, high memory, or upper
memory blocks.
Usually you do not need to use any command line options. However, if command-
line options are needed, you must include them in you CONFIG.SYS file.
For example:
DEVICE=XMOUSE.SYS /c2 to install on COM2
Once the mouse driver is installed into memory, you are ready to use your
application program.
REMOVING THE XMOUSE DRIVER
XMOUSE will remain in memory, ready for use by any applications program until
you either reboot or turn off your computer. Remember though that you will
have to re-install XMOUSE if you reboot an applications disk, unless the
XMOUSE.SYS file is already included in your CONFIG.SYS file as a device driver,
or XMOUSE.COM is included in your AUTOEXEC.BAT file.
You can disable and remove the XMOUSE driver by typing the command:
XMOUSE OFF
This command releases the hardware port to which the mouse is connected, and if
possible, the mouse driver will be removed from memory. If other TSR programs
have been loaded after XMOUSE.COM, however, XMOUSE will not be released from
memory. XMOUSE.SYS can not be removed from memory.
CONFIGURING THE MOUSE DRIVER
Normally the XMOUSE driver automatically configures itself for the type of
mouse you have, you do not need to set any options. However, there are a
number of options which you can select from the command line or by an entry in
a special file named MOUSE.INI.
The mouse driver options control four areas of the drivers bahavior:
1) the mouse hardware type and the port that the mouse is connected to;
2) the cursor the driver displays on screen and what language it uses
for messages;
3) the location in memory where the mouse driver will be loaded;
4) motion sensitivity settings.
Command-Line Switches
These options can be issued after the driver is initially installed. However,
memory location and mouse type can not be changed without removing the XMOUSE
driver. Please refer to the respective sections for details.
The command-line options can be combined together. For example, you can use
both /h and /v together, and it will work in the same way as using /s. The
order of the command-line switches is not significant.
Either upper or lower-case letters can be used in command-line options. The
place-holder # following some option letters represents an optional number.
Mouse Type Options
The XMOUSE driver is capable of operating with any of the standard kinds of
mice. When it installs, the XMOUSE driver searches first for an InPort mouse,
then a bus mouse, followed by a PS/2 mouse, and then a Microsoft compatible
serial mouse. Finally, if the driver does not find any of these mice, it will
default to installing a driver for a Mouse Systems serial mouse on the first
COM port it finds.
For a serial mouse, use the /c# command-line option to select which serial port
the mouse is connected to(# here refers to COM port 1,2,3 or 4). For example:
XMOUSE /c2 for com2
Command-line options can also be used to force XMOUSE to install for the type
of serial mouse you have. For example,
XMOUSE /mi force Microsoft-type serial driver to install
XMOUSE /mo force Mouse Systems-type serial driver to
install
For an InPort mouse, there are two possible addresses. For the primary address,
use /i1; for secondary address, use /i2:
XMOUSE /i2 for secondary InPort
There is a command /r# that allows you to change the interrupt rate of InPort
mice. At high interrupt rates, the cursor movement on the screen is more
responsive; however, the application may slow down since the processing is
interrupted more often. The default setting of 1 usually provides the optimal
balance between application speed and cursor responsiveness.
Value(#) Interrupt Rate
0 0 Hz
1 30 Hz
2 50 Hz
3 100 Hz
4 200 Hz
For a bus mouse, you type:
XMOUSE /b
For a PS/2 style mouse, you type:
XMOUSE /z
XMOUSE will print a message confirming that it is installed. For example, if
you are using a serial mouse with COM 1 as the COM port, after you type XMOUSE,
the following message will appear:
Installed on COM 1
If the mouse does not seem to be working, you should check whether the
connection is correct, and re-install the mouse driver.
Display Options
Cursor Display Delay
The Cursor Display Delay switch(/n#) controls how often the cursor is redrawn
while the mouse moves across the screen. Reducing the redraw rate may help you
to follow cursor movement better on LCD displays. The value can be in the
range of 0 - 10. A larger number results in a less frequent cursor display.
Force Default Cursor
The /m# switch is a useful command if you are using an application that draws
a small cursor on a laptop(or palmtop) computer with an LCD display. It forces
the mouse driver to use a default text cursor, which is a character size block,
and thus may make the cursor easier to follow. The command /m0 turns it off,
while /m1 turns it on.
Foreign Languages
If you want to change the language in which XMOUSE message appears, you can use
the commmand-line switch /l(letter). Besides English, which is the default
language, other languages included are: German, Spanish, French, Italian, Dutch,
Finnish, and Swedish(see table on page 10).
For example, for German messages, type at the DOS prompt:
XMOUSE /ld
If you want to go back to English, just type:
XMOUSE /l
Memory Options
Only XMOUSE.COM can be relocated. XMOUSE.SYS can not be relocated.
There are many times when you want to maximize the amount of memory available
to your DOS applications programs. One way to do it is to move the XMOUSE
driver to a location in memory outside of the area used by applications
programs.
New versions of MS DOS and DR DOS can relocate XMOUSE, as can a number of
utility programs such as QEMM, 386MAX, NETROOM and others. If you are using
one of these programs to relocate the mouse driver, then you do not need to use
the mouse driver's relocation command-line options, although they still work
and are compatible.
The mouse driver normally resides in low memory, which is where DOS applications
programs are also loaded. If you need more space for your applications, you
can relocate most of the XMOUSE driver to either expanded memory, high memory,
or upper memory block.
Use the /u command to load the mouse driver into upper memory(between 640k - 1
MB), or the /e command switch to load it into expanded memory, or the /hi
command to load it into high memory(first 64k above 1 MB).
To relocate the driver to expanded memory, you must have either expanded memory
hardware, such as an Intel Above Board, or a software driver, such as EMM386 or
QEMM in your machine.
To relocate the driver to high memory you must have an 80286, 80386 or 80486
family processor and more than 1 MB of memory. You must also have the
HIMEM.SYS driver, or its equivalent, loaded before installing the mouse driver.
To relocate the driver to an upper memory block, your CONFIG.SYS file should
have the line:
DEVICE=HIMEM.SYS
In addition, if you are running DOS 5.0, you should also have the line
DOS=UMB
in your CONFIG.SYS file. And in your AUTOEXEC.BAT file you can put:
XMOUSE /hi for high memory block
A small amount of low memory is still required even when the main body of the
driver is loaded into either high or expanded memory.
You cannot relocate the mouse driver into another memory area without first
removing the mouse driver by using the XMOUSE OFF command.
Other Settings
Sensitivity
Three command options are provided to adjust the sensitivity of the cursor
tracking. The default sensitivity setting provides the same tracking response
as the mouse hardware. Each sensitivity option is a number from 5 to 100. 50
is the default setting.
Larger numbers increase the sensitivity, making the cursor move more rapidly,
and smaller number decrease the sensitivity. You can experiment to find a
comfortable setting for yourself.
The command options are:
/s# set both horizontal and vertical sensitivity
/h# set the horizontal sensitivity
/v# set the vertical sensitivity
For example:
XMOUSE /s100
provides a very fast mouse while
XMOUSE /s10
provides a very slow mouse for highly accurate cursor positioning.
Button Mapping
The left button is the primary button by default. However, you can redefine
primary and secondary buttons to suit your own preferences by using the command
/kp#s#. In this command, p# is the primary button number, s# is the secondary
button value.
Button numbers for two-button mice:
Button Value
Left Button 1
Right Button 2
Button numbers for three-button mice:
Button Value
Left Button 1
Middle Button 2
Right Button 3
For instance, if you want to choose the right button as your primary button,
and the middle button as your secondary button, you should type:
XMOUSE /kp3s2
For a left handed user, it is convenient to have the primary button be the
right button on the mouse, and the secondary button be the left button. The
command to do this is:
XMOUSE /kp2s1 for two-button mice
XMOUSE /kp3s1 for three-button mice
Clicklock
The command /kc turns the third button on a three button mouse into a clicklock
toggle. It works only with mice that have three buttons or more. Clicklock is
especially helpful when you need to hold down the primary button while moving
the mouse.
Pressing the third(and fourth button simutaneously in the case of a BallPoint
four-button device) will activate the lock on the primary button. Pressing the
button again(or buttons, in the case of the BallPoint) releases the lock.
When the primary button is locked down, the secondary button will be inactive
until the hold on the primary button is released. The /k command disables the
clicklock functionality, the third button will then work as the middle button.
Rotation Angle
This command specifies the rotation angle of the mouse cursor's movement
relative to its physical motion. The rotation angle is an integer value
representing the number of degrees that the mouse's vertical axis is rotated
clockwise from the default axis. The range is 0 - 359. Typically this command
is used to adjust the output of a mouse or trackball when the user finds it
most comfortable to hold the device at an angle.
MOUSE.INI File
The MOUSE.INI is an initialization file which contains many settings for the
mouse driver included in, but not limited to, the command-line switches. The
file is specially useful if you want to save some features as default values.
It saves the trouble of typing the command-line options every time you install
the XMOUSE driver.
The settings in the MOUSE.INI are read by the mouse driver when it is loaded
into memory. XMOUSE.SYS, however, cannot read the MOUSE.INI file. Whenever
you change any setting in the MOUSE.INI file, it becomes the default setting.
You can always use command-line switches to override the settings in MOUSE.INI
if you want to make a temporary change. The default settings for the MOUSE.INI
file for three button mice are as following:
[mouse]
MouseType = ** automatic search for mouse **
CompatibleWith = ** automatic determination **
Language = English
Memory = LowMem
ActiveAccelerationProfile = 2
PrimaryButton = 1 ** left button **
SecondaryButton = 3 ** right button of 3-button mouse **
ClickLock = Off
RotationAngle = 0
InterruptRate = 1
IRQnumber = ** automatic determination **
HorizontalSensitivity = 50
VerticalSensitivity = 50
CursorDisplayDelay = 0
ForceDefaultCursor = Off
[DOSPointer]
PointerSize = Small
PointerColor = Normal
Growth = False
Threshold = 1
Delay = 1
The MOUSE.INI file also stores acceleration profiles in the file:
[AccelerationProfile1]
Label = Slow
Movement = 1 30 33 37 41 46
Factor = 1.00 3.00 3.25 3.50 3.75 4.00
[AccelerationProfile2]
Label = Moderate
Movement = 1 5 7 9 11 37 39 41 43
Factor = 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00
[AccelerationProfile3]
Label = Fast
Movement = 1 9 12 15 18 21 24 27 30 33
37 41 46
Factor = 1.00 1.25 1.50 1.75 2.00 2.25 2.50 2.75 3.00 3.25
3.50 3.75 4.00
[AccelerationProfile4]
Label = Unaccelerated
Movement = 1
Factor = 1.00
You can use any text editor or word processor that saves ASCII files to edit
the MOUSE.INI file and change the settings.
The DOSPointer is a newly added section to the MOUSE.INI. Its features are
most helpful for LCD displays where the cursor movement is not as easy to
follow. You can change the pointer size from small, medium to large; and its
color can be set to normal, reverse or transparent. You need to try it
yourself to find out the size and color you like most.
In text mode the pointer will increase and reduce in size if you put growth
value equal to true in the MOUSE.INI file. In graphics mode, however, it will
be shown against a contrasting block. If you do not desire this feature, you
only have to set growth value to false. Please note, However, that the text
pointer can only grow to the size you have defined in the MOUSE.INI. That is
to say, the pointer will grow to large if set to large. It will not grow at all
if the pointer size is set to small.
There is a threshold of mouse movement speed you need to reach in order to
enable the pointer to "grow". It can be set from 1 to 100. Moving the mouse
at a speed faster than the threshold value will result in a bigger/contrasted
cursor. The higher the threshold value, the faster you will have to move the
mouse to see the pointer "grow". If you set threshold value to 1, you will
frequently see the enlarged/contrasted pointer when moving the mouse. If your
threshold value is 100, however, you will probably not see it unless you move
the mouse extremely fast.
Delay, which also ranges from 1 to 100, determines the duration the pointer
"growth" lasts. The higher the delay value, the longer you see the cursor
"grow". If the delay time is set to 1, you will see a temporarily enlarged
or contrasted pointer before it falls back to the original state. If you set
the delay value to 100, however, the enlarged cursor or contrasted block will
last for quite a while.
Here are some examples of how to change the settings in the MOUSE.INI. If you
want to: (1) install an InPort mouse with interrupt rate of 60 Hz, (2) always
load the XMOUSE driver into expanded memory, (3) set the vertical and
horizontal sensitivities to 95 and, (4) make installation messages appear in
French; the settings in the MOUSE.INI should be:
MouseType = InPort1
InterruptRate = 2
Memory = EMM
VerticalSensitivity = 95
HorizontalSensitivity = 95
Language = French
If you want a medium, reverse cursor with the growth pointer feature and set
both its delay and threshold at 2, you modify the settings in the DOSPointer
section to:
PointerSize = Medium
PointerColor = Reverse
Growth = True
Threshold = 2
Delay = 2
MOUSE DRIVER BALLISTICS
XMOUSE supports fully Microsoft compatible ballistic acceleration. This mouse
driver comes with four built-in ballistic gain profiles:
Speed Value
Slow: ballistic profile 1
Moderate: ballistic profile 2
Fast: ballistic profile 3
Unaccelerated: ballistic profile 4
To select a ballistic profile, you can use /p# command-line options. For
example, you type:
XMOUSE /p1 select ballistic profile 1
Each of the four movement profiles defines how much cursor motion results from
a given amount of mouse motion. You can also use the SETSPEED program to
choose profiles, load a new set of profiles, or find out which profile is in
effect within your mouse driver. Of course, the mouse driver must be loaded
before you use SETSPEED.EXE.
The command-line options for SETSPEED are:
SETSPEED /p# /ffilename
where # is 1, 2, 3, or 4. Filename is the name of a text file containing
movement profiles to be used by the mouse driver.
SETSPEED /?
reports the currently active profile. For example,
SETSPEED /p3 /fPROFILES.TXT
selects movement profile 3 from the file "PROFILES.TXT"
The motion profile data files are text files that define the relationship
between mouse motion and screen cursor motion. For each movement profile
within the file there is a list of mouse motions and corresponding scaling
factors. A scaling factor of 1.0 means that one mouse motion increment
corresponds to one screen motion increment. Larger scaling factors result in
"faster" mouse motion. Use the file DEFAULT.PRO as a guide to the proper
syntax of the motion profile data.
Mouse movement values can range from 1 to 127, while scaling factors can range
from 0 to 16. A scaling factor value of 0.5 effectively halves the resolution
of the mouse(eg. from 400 to 200 dpi).
You can specify up to 32 mouse movement entries, and the steps between entries
in the list do not have to be equal. For each movement entry you must specify
a factor entry. The profile labels are truncated to 16 characters when the
profile is loaded into the mouse driver.